<template>
  <div class="layout">
    <!-- 根组件App.vue -->
    <Layout>
      <!-- 头部 -->
      <Head />
      <Content :style="{ padding: '0 50px' }">
        <!-- 面包屑 -->
        <Bread />
        <Card>
          <div style="min-height: 200px">
            <nuxt />
          </div>
        </Card>
      </Content>
      <Footer class="layout-footer-center">
        2011-2016 &copy; TalkingData
      </Footer>
    </Layout>
  </div>
</template>

<script>
import Head from '@/components/head/index'
import Bread from '@/components/bread/index'
export default {
  components: {
    Head,
    Bread
  }
}
</script>
<style>
html,
body,
#__nuxt,
#__layout,
.layout,
.ivu-layout {
  width: 100%;
  height: 100%;
}
.layout {
  border: 1px solid #d7dde4;
  background: #f5f7f9;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.layout-logo {
  width: 100px;
  height: 30px;
  background: #5b6270;
  border-radius: 3px;
  float: left;
  position: relative;
  top: 15px;
  left: 20px;
}
.layout-nav {
  width: 420px;
  margin: 0 auto;
  margin-right: 20px;
}
.layout-footer-center {
  text-align: center;
}
</style>
